﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace DAL
{
    using DAL.Framework;

    [Table("MyView")]
    public class MyView : IBaseEntity
    {

        /// <summary>
        /// 用户id
        /// </summary>
        [Column("Id")]
        [Key]
        [Display(Name = "用户id", Order = 5)]
        public string Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Column("Name")]
        [StringLength(233, ErrorMessage = "长度不可超过233")]
        [Display(Name = "名称", Order = 2)]
        public string Name { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Column("Sort")]
        [Range(0, 2147483646, ErrorMessage = "数值超出范围")]
        [Display(Name = "排序", Order = 3)]
        public int Sort { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Column("Expr2")]
        [Display(Name = "用户名", Order = 4)]
        public string Expr2 { get; set; }

        /// <summary>
        /// 部门id
        /// </summary>
        [Column("Expr1")]
        [Display(Name = "部门id", Order = 1)]
        public string Expr1 { get; set; }

    }
}

